const commander = require("commander");
const { createAction } = require("./actions");

// .command==>生成指令 名称 [option1]
// .derscription ==> 描述
// .action => 要做的事情  因为每个指令要做的事情不一样 所有都封装到 core/actions.js
const createCommanders = () => {
  commander
    .command("create <projectName> [others...]")
    .description("clone a command")
    .action(createAction);
};

module.exports = createCommanders;
